package org.jsets.fastboot.oss.mapper;

import java.util.Date;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.jsets.fastboot.oss.model.entity.FileMeta;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

@Mapper
public interface FileMetaMapper extends BaseMapper<FileMeta> {

	@Update("update sys_file_meta t set t.last_access_time = #{lastAccessTime},t.citations = t.citations+1  where id = #{id}")
	int updateAccessInfo(@Param("id")Long id, @Param("lastAccessTime")Date lastAccessTime);
}